package org.smile.design.brige;

public class CustomBigShip extends BigShip {
    private BigShip bigShip;

    public CustomBigShip(BigShip bigShip) {
        this.bigShip = bigShip;
    }

    @Override
    public String listEquipments() {

        String equipments = "";
        for (ShipEquipment shipEquipment : super.getShipEquipment()){
            equipments += shipEquipment.getName();
        }

        for (ShipEquipment shipEquipment1: bigShip.getShipEquipment()){
            super.getShipEquipment().add(shipEquipment1);
        }
        return equipments + bigShip.listEquipments();
    }
}
